#include "precompiled/pchkrayserkraw.h"

#include "kraw/runtime.h"
#include "kraw/krawapp.h"

//------------------------------------------------------------------------------

int KrawMain( Runtime& runtime )
{
    //run the app(s)
    KrawApp app;
    if ( app.Open() )
    {
        while ( runtime.Trigger() && !app.IsDone() )
        {
            app.Tick( runtime.GetTimeFrame() );
            app.Draw();

            runtime.Render();
        }

        app.Close();
    }

    return 0;
}
